package com.laivi.basic.annotation.orm;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.laivi.basic.common.constants.Constant;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@Documented
public @interface Column {
	boolean id() default false;
 
	boolean nullable() default true;
	
	boolean longtext() default false;
	
	boolean many() default false;
	
	boolean one() default false;
	
	int length() default 255;
	
	String comments() default Constant.EMPTY;
	
	String name() default Constant.EMPTY;
}
